package de.tabuma.shopping.logik;

import de.tabuma.shopping.entity.OrderLicensePackageRelation;
import java.util.List;

/**
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/07/21 19:37:33 $
 */
public class OrderLicensePackageRelationFacade {
    public static int create(OrderLicensePackageRelation orderLicensePackageRelation, String user) {
        return (int) PMF.doCreate(orderLicensePackageRelation, user);
    }

    public static void update(OrderLicensePackageRelation orderLicensePackageRelation, String user) {
        PMF.doUpdate(orderLicensePackageRelation, user);
    }

    public static void remove(OrderLicensePackageRelation orderLicensePackageRelation, String user) {
        PMF.doRemove(orderLicensePackageRelation, user);
    }

    public static OrderLicensePackageRelation get(int id) {
        return PMF.get(id, new OrderLicensePackageRelation());
    }

    public static List<OrderLicensePackageRelation> getList(int orderId) {
        String keys[] = {"orderId"};
        String values[] = {""+orderId};
        return PMF.get(keys, values, new OrderLicensePackageRelation());
    }
}
